#include "main.h"

int not_main( int argc, char *argv[] ) {
	s_buffer* b = createBuffer( 10 );
	setBuffer( b, "qwerty", 6 );
	printf( "s_buffer@%p[ '%s'(%d) ]\n", b, b->data, b->size );
	append( b, "asdfasdf", 10 );
	printf( "s_buffer@%p[ '%s'(%d) ]\n", b, b->data, b->size );
	destroyBuffer( b );
	return 0;
}

int main() {
	/*
	reg r1;
	r1.b = 44;

	s_boolean b = IS_ACCESS_PRIVATE( 0x11 );
	if( b ) {
	//	printf("true\n");
	} else {
		printf("false\n");
	}
	*/
	//setlocale( LC_ALL, "UTF-8" );
	//S_ERROR( "UTF-8", "Could not do something" );
	
	//printf("Serious VM %d\n\r", 666);
	
	//s_char bah[ 2 ];
	//bah[ 0 ] = 0x05D0;
	//bah[ 1 ] = 0x0000;
	//free( malloc( 1 ) );
	printf("1 ");
	s_string* string = createString( "testing the string" );printf("2 ");
	s_string* sss = createString();printf("3 ");
	s_string* hah = createString();printf("4 ");
	//s_string* copy = createStringCopy( string );printf("5 ");
printf("Virtual Machine\n");
	printStringInfo( sss );
	printStringInfo( string );
	//free( malloc( 1000 ) );
	printStringInfo( hah );
	//printStringInfo( copy );

	//s_string* sub = subString( string, 0, 10 );
	//printStringInfo( sub );
	
	printf( "cmp: %d\n", compareString( hah, string ) );
	printf( "charAt: %x\n", charAt( string, 10 ) );
	
	deleteString( string );
	deleteString( sss );
	deleteString( hah );
	//deleteString( copy );
	
	return 0;
}
